package com.tjetc.dao;

import com.tjetc.pojo.entity.User;

/**
 * @Author: itda
 * @Date: 2024/5/10 19:49
 * @Description: UserDao
 */
public interface UserDao {
    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    User getByUserName(String username) throws Exception;

    /**
     * 注册用户
     * @param user
     */
    void insert(User user) throws Exception;
}
